package com.lijiaxing.service.impl;

import com.lijiaxing.mapper.staffMapper;
import com.lijiaxing.pojo.Companio;
import com.lijiaxing.service.staffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class staffServiceImpl implements staffService {
    @Autowired
    staffMapper mapper;
    public Companio[] getCompanioList(int pageNum,int pageSize){
        pageNum = (pageNum - 1) * 10;
        Companio[] companios = mapper.queryTenCompanio(pageNum, pageSize);
        return companios;
    }
}
